package com.crm.service.Impl;
import com.crm.pojo.Cservice;
import com.crm.mapper.serviceMapper;
import com.crm.service.serviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class serviceServiceImpl implements serviceService {
    @Autowired
    private serviceMapper mapper;
    @Override
    public List<Cservice> selectAll() {
        return mapper.selectAll();
    }

    @Override
    public Cservice selectOne(int id) {
        return mapper.selectById(id);
    }
    @Override
    public boolean save(Cservice service) {
        return mapper.add(service);
    }

    @Override
    public boolean update(Cservice service) {
        return mapper.update(service);
    }

    @Override
    public boolean remove(int id) {
        return mapper.delete(id);
    }
}
